Skip to content

Add dividendType to CashTransaction#14

Merged
vroonhof merged 1 commit into
vroonhof:masterfrom
Oppizz:dividend-type
Apr 19, 2026
Merged

Add dividendType to CashTransaction#14
vroonhof merged 1 commit into
vroonhof:masterfrom
Oppizz:dividend-type

Conversation

@Oppizz

@Oppizz Oppizz commented Apr 19, 2026

Copy link
Copy Markdown

Value in dividendType can help to identify non-taxable payments.
Sample values from IBKR:

  • Ordinary Dividend
  • Return of Capital
  • Mixed Income
  • Bonus Dividend
  • Interest

Add dividendType to CashTransaction

@vroonhof vroonhof left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to commit this, but given what you said an enum may be better.

Will be interesting on how to safely use this given it it so new.

Comment thread ibflex/Types.py
issuerCountryCode: Optional[str] = None
availableForTradingDate: Optional[datetime.datetime] = None
exDate: Optional[datetime.datetime] = None
dividendType: Optional[str] = None

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a recent addition? I don't see it in any of my exports (and I select all fields normally).
https://www.ibkrguides.com/reportingreference/reportguide/cash%20transactionsfq.htm also doesn't show it .

I see it got added to the UI now as well, amended my exports.

Should it be an enum?

@vroonhof vroonhof merged commit b1d89ed into vroonhof:master Apr 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants